<!--添加界面引导 BY zmx-->
<div class="panel  panel-default" data-position="top" data-intro="在这里展示上月积分变动较大的员工">
    <section class="panel">
        <header class="panel-heading">积分变动提醒</header>	
        <div class="col-lg-12 panel">
            <div class="panel panel-default col-lg-6">
                <div class="chart-graph line-chart">
                    <div id="container" style="height: 300px; margin: 0 auto;">
                    </div>
                </div>
            </div>
            <div class="panel panel-default col-lg-6">
                <div class="chart-graph line-chart">
                    <div id="containero" style="height: 300px; margin: 0 auto;">
                    </div>
                </div>
            </div>
        </div>
    </section>
    <div class="clearfix"></div>
</div>
<script>
    $(document).ready(function(){
        $('#container').highcharts({
            chart: {
                type: 'line'
            },
            title: {text: "<a title='查看其积分详情' href='<?php echo U('Integral_log/index'); ?>&member_id=<?php echo $up_member; ?>'>上月积分上升异常</a>",useHTML: true},
            subtitle: {text: '注：上月积分/上上月积分得出的比例最大且大于4/3'},
            xAxis: {
                categories: {$up_date?$up_date:'[]'},
                labels: {rotation: 0,step:3}//step x轴间隔
            },
            yAxis: {
                title: {
                    text: '积分数量'
                }
            },
            credits: {
                enabled: false
            },
            tooltip: {
                pointFormat: '获得积分: <b>{point.y} </b>分',shared: true,crosshairs: [{width:2}]
            },
            series: [{
                name: '{$up_person}',
                data: {$up_arr?$up_arr:"''"},
            }]
        });
        $('#containero').highcharts({
            chart: {
                type: 'line'
            },
            title: {text: "<a title='查看其积分详情' href='<?php echo U('Integral_log/index'); ?>&member_id=<?php echo $down_member; ?>'>上月积分下滑异常</a>",useHTML: true},
            subtitle: {text: '注：上月积分/上上月积分得出的比例最小且小于3/4'},
            xAxis: {
                categories: {$down_date?$down_date:'[]'},
                labels: {rotation: 0,step:3}// step x轴间隔
            },
            yAxis: {
                title: {
                    text: '积分数量'
                }
            },
            credits: {
                enabled: false
            },
            tooltip: {
                pointFormat: '获得积分: <b>{point.y} </b>分',shared: true,crosshairs: [{width:2}]
            },
            series: [{
                name: '{$down_person}',
                data: {$down_arr?$down_arr:"''"},
            }]
        });
    });
</script>

